Finds the panel and returns its object.

<div class="definition">
    get(type)
</div>

<div class="arguments">
    <table>
    <tr>
        <td>type</td>
        <td><b>string</b>, name of the panel</td>
    </tr>
    </table>
</div>

<h4>Description</h4>

The first argument <span class="argument">type</span> is the name of the panel. It can be one of the following:
<ul style="margin-left: 50px">
    <li>top
    <li>left
    <li>main
    <li>right
    <li>preview
    <li>bottom
</ul>
If the panel does not exists in <a href="w2layout.panels">w2layout.panels</a> array, the method will return null.
Below is a structure of the panel object:

<textarea class="javascript">
panel: {
    type:       null,    // type of the panel can be: left, right, top, bottom, preview
    size:       100,     // width or height of the panel depending on panel type
    minSize:    20,      // minimum size of the panel in px when it is resized
    hidden:     false,   // indicates if panel is hidden
    resizable:  false,   // indicates if panel is resizable
    overflow:   'auto',  // overflow property of the panel, can have same values as similar CSS property
    style:      '',      // additional css styles for the panel
    html:       '',      // content of the panel, can be a string or an object with .render(box) method
    width:      null,    // width of the panel, read only
    height:     null,    // height of the panel, read only
    onRefresh:  null,    // refresh event for the panel
    onShow:     null,    // show event for the panel
    onHide:     null     // hide event for the panel
}
</textarea>

Because JavaScript passes objects by reference, changing the returned object will change the original. The better way to change panel
properties is using <a href="w2layout.set">w2layout.set()</a> method, which will also apply changes on the screen.
<div style="height: 10px"></div>

Below is an example how to find panel object:
<textarea class="javascript">
let layout = new w2layout({
    name    : 'layout',
    panels  : [
        { type: 'top', size: 40 },
        { type: 'main', html: 'This is main panel' },
        { type: 'preview', size: 200, hidden: true }
    ]
});

console.log(w2ui.layout.get('preview'));
</textarea>
